SPB Git

Repository Public

route.ts 464 B 9 lines typescript

1import { dispatch } from "@/lib/studio/api";2import { route } from "@/server/http";34export const dynamic = "force-dynamic";56/** The studio's private API. Authentication, authorisation, origin and CSRF checks live in the dispatcher. */7const handle = route(async (req: Request, { params }: { params: Promise<{ path: string[] }> }) => dispatch(req, (await params).path));8export { handle as GET, handle as POST, handle as PUT, handle as PATCH, handle as DELETE };9
Files main
Menu

Theme